package com.ymttest.database.sqlwapper;

import java.util.List;

import com.ymt.database.SqlManager;
import com.ymttest.database.model.YmtEngrossStockRecord;

public class YmtEngrossStockRecordWapper {
	SqlManager manage;

	public YmtEngrossStockRecordWapper() {
		manage = new SqlManager("intpro");
	}
	
	public YmtEngrossStockRecord selectByOrderId(int orderId)throws InterruptedException{
		  @SuppressWarnings("unchecked")
		List<YmtEngrossStockRecord>  YmtEngrossStockRecordList = manage.getSelectResults(
		            "com.ymttest.database.mapping.YmtEngrossStockRecordMapper.selectByOrderId", orderId);
		    manage.commit();
		    return YmtEngrossStockRecordList.get(0);
	}
	public static void main(String[] args) throws InterruptedException {
		System.out.println(new YmtEngrossStockRecordWapper().selectByOrderId(571408384).getsSKU());
	}
}
